﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace clsLib_ActiveDevice
{
    public abstract class ActiveDevice
    {
        public virtual string getName() 
        {
            return this.GetType().ToString();
        }
        public abstract bool InitCom(string sPortName, int iBaudRate, int iDataBits, out string msg);
        public abstract bool openCom();
        public abstract bool closeCom();
        public abstract bool sendCommand(string command);
        public abstract bool receiveCommand();
        public abstract void ErgodiclstCommandContent();
        
    }
}
